<?php
declare(strict_types = 1);
namespace App\Controller\Api;

use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use App\Controller\AbstractController;
use App\Service\PssService\SystemCloudNodeService;

/**
 * @Controller(prefix="/SystemCloudNode")
 * 云仓菜单节点功能
 */
class SystemCloudNodeController extends AbstractController
{
    /**
     * 云仓菜单节点权限查询
     * @RequestMapping(path="querySystemCloudNodeList", methods="GET")
     * @return string[]
     */
    public function querySystemCloudNodeList(RequestInterface $request,SystemCloudNodeService $service)
    {
        return $service->querySystemCloudNodeList();
    }
    
    /**
     * 获取指定权限接口
     * @RequestMapping(path="querySystemNodesByInputs", methods="POST")
     * @return string[]
     */
    public function querySystemNodesByInputs(RequestInterface $request,SystemCloudNodeService $service)
    {
        return $service->querySystemNodesByInputs($request->getParsedBody());
    }
}
